// while循环，
#include <stdio.h>
int main(int argc, char const *argv[])
{
    int inumber;
    int sum = 0;
    int times = 0;

    while (1)
    {
        printf("请输入1~100的整数：");
        scanf("%d", &inumber);
        if (inumber > 100)
            continue;
        if (inumber == 0)
            break;
        sum += inumber;
        times++;
    }
    printf("times=%d,sum=%d\n", times, sum);

    return 0;
}
